FROM maven:3.3.9-jdk-8-alipine AS test
RUN mvn clean install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true

FROM openjdk:8-jdk-slim
LABEL maintainer=dannyslee
COPY target/*.jar /app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
